<template>
  <div>
<!--  <el-submenu index="2">-->
<!--    <template slot="title">个人服务</template>-->
<!--    <el-menu-item index="2-1"><el-button to="" tag="font" @click="dialogVisible = true">个人信息</el-button></el-menu-item>-->
<!--    <el-menu-item index="2-2">购物车</el-menu-item>-->
<!--    <el-menu-item index="2-3">订单详情</el-menu-item>-->
<!--  </el-submenu>-->

666
  </div>
</template>

<script>
export default {
  name: "Message",
  data() {
    return {
      activeIndex: '1',
      activeIndex2: '1',
      input: '',
      names:[],
      drawer:false,
      innerDrawer: false,
      list:{},
      dialogVisible: false,
    };
  },
  created () {
    // let a = sessionStorage.getItem('a')
    // console.log(a)
    // console.log(localStorage.getItem('b'))
    // alert(this.$store.state.loginUser.name)
    this.$http.post('http://localhost:2003/fuser/login',{name:this.$store.state.loginUser.name}).then(response => {
      this.list = response;
      // alert(this.list);
      console.log(this.list);
    }).catch(error => {
      console.log(error)
    })
  },
  methods: {
    handleSelect(key, keyPath) {
      console.log(key, keyPath);
    },
    // nameff(){
    //   if(this.$store.state.loginUser.name!=null){
    //     this.names="用户名";
    //   }else{
    //     this.names="未登录";
    //   }
    // },
    // handleClose(done) {
    //   this.$confirm('还有未保存的工作哦确定关闭吗？')
    //     .then(_ => {
    //       done();
    //     })
    //     .catch(_ => {});
    // },
    handleClose(done) {
      this.$confirm('确认关闭？')
        .then(_ => {
          done();
        })
        .catch(_ => {});
    }
  }
  }
</script>

<style>
.content{
  width: 99.72%;
  /*height: 500px;*/
  border: 2px solid chartreuse;
  float: left;
}


</style>
